.data
    hello:
        .string "hello\n"
    len_hello = . - hello
    world:
        .string "world\n"
    len_world = . - world

.text
.global _start

# _start:
#     movl $4, %eax           # sys_write(fd, buf, cnt)
#     movl $2, %ebx           # fd
#     movl $hello, %ecx       # buf
#     movl $len_hello, %edx   # cnt
#     int  $0x80
#     movl $4, %eax           # sys_write(fd, buf, cnt)
#     movl $2, %ebx           # fd
#     movl $world, %ecx       # buf
#     movl $len_world, %edx   # cnt
#     int  $0x80

.intel_syntax noprefix
_start:
    mov eax, 4              # sys_write(fd, buf, cnt)
    mov ebx, 1              # fd
    lea ecx, hello          # buf
    mov edx, len_hello      # cnt
    int 0x80
    mov eax, 4              # sys_write(fd, buf, cnt)
    mov ebx, 1              # fd
    lea ecx, world          # buf
    mov edx, len_world      # cnt
    int 0x80
    mov eax, 1              # sys_exit(ret)
    mov ebx, 0              # ret
    int 0x80
